package com.example.myapplication2048.datamodel;

/**
 * 动态数据模型
 */
public class DynamicItemInfo {
    // true 关注  false 没关注
    private boolean isFocusOn;
    //用户名
    private String author;
    //用户头像
    private String authorImgUrl;
    //创建时间
    private Long create_date;
    // true 点赞  false 没点赞
    private boolean isPraise;
    //点赞数量
    private Integer praiseNum;
    //评论数量
    private Integer commentsNum;
    //热度数量
    private Integer hotNum;

    public DynamicItemInfo(boolean isFocusOn, String author, String authorImgUrl, Long create_date, boolean isPraise, Integer praiseNum, Integer commentsNum, Integer hotNum) {
        this.isFocusOn = isFocusOn;
        this.author = author;
        this.authorImgUrl = authorImgUrl;
        this.create_date = create_date;
        this.isPraise = isPraise;
        this.praiseNum = praiseNum;
        this.commentsNum = commentsNum;
        this.hotNum = hotNum;
    }

    @Override
    public String toString() {
        return "dynamicModel{" +
                "isFocusOn=" + isFocusOn +
                ", author='" + author + '\'' +
                ", authorImgUrl='" + authorImgUrl + '\'' +
                ", create_date=" + create_date +
                ", isPraise=" + isPraise +
                ", praiseNum=" + praiseNum +
                ", commentsNum=" + commentsNum +
                ", hotNum=" + hotNum +
                '}';
    }

    public boolean isFocusOn() {
        return isFocusOn;
    }

    public void setFocusOn(boolean focusOn) {
        isFocusOn = focusOn;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthorImgUrl() {
        return authorImgUrl;
    }

    public void setAuthorImgUrl(String authorImgUrl) {
        this.authorImgUrl = authorImgUrl;
    }

    public Long getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Long create_date) {
        this.create_date = create_date;
    }

    public boolean isPraise() {
        return isPraise;
    }

    public void setPraise(boolean praise) {
        isPraise = praise;
    }

    public Integer getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(Integer praiseNum) {
        this.praiseNum = praiseNum;
    }

    public Integer getCommentsNum() {
        return commentsNum;
    }

    public void setCommentsNum(Integer commentsNum) {
        this.commentsNum = commentsNum;
    }

    public Integer getHotNum() {
        return hotNum;
    }

    public void setHotNum(Integer hotNum) {
        this.hotNum = hotNum;
    }
}
